package com.ztx.service.base;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

public interface IBaseService {
	public int add(String sqlId, Object args) throws Exception;

	public int add(String sqlId) throws Exception;

	public int delete(String sqlId, Object args) throws Exception;

	public int delete(String sqlId) throws Exception;

	public int update(String sqlId, Object args) throws Exception;

	public int update(String sqlId) throws Exception;

	public <T> T selectOne(String sqlId) throws Exception;

	public <T> T selectOne(String sqlId, Object param) throws Exception;

	public <E> List<E> selectList(String sqlId) throws Exception;

	public <E> List<E> selectList(String sqlId, Object parameter)
			throws Exception;

	public <E> List<E> selectList(String sqlId, Object parameter,
			RowBounds rowBounds);
}
